package com.springboot.spring01ioc.config;

import com.springboot.spring01ioc.bean.Dog;
import lombok.ToString;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@ToString
@PropertySource("classpath:dog.properties")
public class DogConfig {

    /*@Bean
    public Dog dog01(){

        Dog dog = new Dog();
        dog.setName("大李狗");
        return dog;

    }
    @Bean
    public Dog dog02(){

        Dog dog = new Dog();
        dog.setName("炫狗");
        return dog;

    }*/

}
